package com.oocl.o2o.client.service;

import java.util.List;
import java.util.Map;

import com.oocl.o2o.client.entity.OrderItem;
import com.oocl.o2o.client.vo.OrderItemVO;

/**
 * @description: 
 * @author  XIEMI2
 * @date Aug 13, 2017 11:50:02 AM
 * @version 1.0
 */
public interface OrderItemService {

	/**
	 * @Description 添加 商品到 购物车
	 * @param orderItems
	 * @param orderItemVO
	 * @return Map<String, OrderItemVO>
	 */
	public Map<String, OrderItemVO> addOrderItem(Map<String, OrderItemVO> orderItems, OrderItemVO orderItemVO);
	
	/**
	 * @Description 点击购物车内部的 + 按钮
	 * @param orderItems
	 * @param orderItemVO
	 * @return Map<String, OrderItemVO>
	 */
	public Map<String, OrderItemVO> plusOneItem(Map<String, OrderItemVO> orderItems, OrderItemVO orderItemVO);
	
	/**
	 * @Description 点击购物车内部的  - 按钮
	 * @param orderItems
	 * @param orderItemVO
	 * @return Map<String, OrderItemVO>
	 */
	public Map<String, OrderItemVO> minusOneItem(Map<String, OrderItemVO> orderItems, OrderItemVO orderItemVO);
	
	/**
	 * 从购物车中移除一条Item
	 * @param orderItems
	 * @param foodId
	 * @return Map<String, OrderItemVO>
	 */
	public Map<String, OrderItemVO> removeOneItem(Map<String, OrderItemVO> orderItems, String foodId);
	
	
	
}


